package com.zeildlin.seecode.util;

public class RedisKeyUtil {
    private static final String SPLIT = ":";
    private static final String PREFIX_ENTITY_LIKE = "like:entity";
    private static final String PREFIX_USER_FOLLOW = "follow:userId";

    //某个实体的赞
    public static String getEntityLikeKet(int entityType,int entityid){
        return PREFIX_ENTITY_LIKE+SPLIT+entityType+SPLIT+entityid;
    }

    //某个用户的关注人数
    public static String getUserFollowKey(int entityUserId){
        return PREFIX_USER_FOLLOW+SPLIT+entityUserId;
    }
}

